package com.runlooker.runer.dao;

import android.content.Context;

public class DbUtil {
	private Context context;
	private ChatMsgDao mChatMsgDao;
	private PersonInfoDao mPersonInfoDao;
	private PresenceDao mPresenceDao;
	private RosterEntryDao mRosterEntryDao;

	public DbUtil(Context context) {
		this.context = context;
		mChatMsgDao = new ChatMsgDao(context);
		mPersonInfoDao = new PersonInfoDao(context);
		mPresenceDao = new PresenceDao(context);
		mRosterEntryDao = new RosterEntryDao(context);
	}

	/**
	 * 清空数据库
	 */
	public void clearDataBase() {
		mChatMsgDao.clearTable();
		mPersonInfoDao.clearTable();
		mPresenceDao.clearTable();
		mRosterEntryDao.clearTable();
	}
}
